//
//  BKUserUnitRequestAPI.h
//  bestkeep
//
//  Created by windCould on 16/11/17.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BKUserRequestResultModel.h"
typedef  void(^BKUserCompleteBlock)(id obj,NSError * error);
typedef  void(^BKUserThirdReturnValueBlock)(id obj,NSString *st,NSError *error);
typedef  void(^BKUserRequestFailure)(id obj,NSError * error);

@interface BKUserUnitRequestAPI : NSObject

//获取ST
+(void)getSTWithTGT:(NSString *)tgt service:(NSString *)service completeBlock:(BKUserThirdReturnValueBlock)finishBlock;

//用户登录
//+(void)userLoginWithUserNum:(NSString *)userNum password:(NSString *)password showTiPInView:(UIView *)view  compeleteBlock:(BKUserCompleteBlock)finishBlock;

//获取用户支付密钥
+ (void)getUserSecretBlock:(BKUserCompleteBlock)userSecretBlock;

//获取用户信息
+(void)getUserInfoCompleteBlock:(BKUserCompleteBlock)finishBlock;

//获取用户收藏列表
+(void)getUserCollectionListWithPageSize:(NSInteger)pageSize pageNo:(NSInteger)pageNo completeBlock:(BKUserCompleteBlock)completeBlock;

//删除收藏列表的商品
+(void)deleteCollectionGoodsFromListWithCollectionId:(NSString *)collectionId completeBlock:(BKUserCompleteBlock)completeBlock;

//商品状态
+(void)goodsReservStatusWithGooodsNo:(NSString *)goodsNo completeBlock:(BKUserCompleteBlock)completeBlock;

//获取用户等级
+(void)getUserLeverOfVipWithResultBlock:(BKUserCompleteBlock)resultBlock;

//修改用户昵称
+(void)modifyUserNickNameWithNewNickName:(NSString *)nickName resultBlcok:(BKUserCompleteBlock)resultBlock;

//上传用户图像
+(void)upLoadUserHeadImgeDataStr:(NSString *)imgDataStr resultBlock:(BKUserCompleteBlock)resultBlok;

//上传用户意见反馈图片
+(void)upLoadFeedBackImgData:(NSData *)imgData resultBlock:(BKUserCompleteBlock)resultBlock;

//上传用户反馈信息
+(void)upLoadFeedBackInfoWithParameterDict:(NSDictionary *)dict resultBlock:(BKUserCompleteBlock)resultBlcok;

//发送短信验证码
+(void)sendMessageWithMobileNum:(NSString *)mobileStr resultBlock:(BKUserCompleteBlock)resultBlock;

//验证短信验证码
+(void)verifySMSVerificationcodeWithCodeStr:(NSString *)codeStr accountNum:(NSString *)accountNumStr resultBlock:(BKUserCompleteBlock)resultBlock;

//用户注册
+(void)userRegisterWithAccount:(NSString *)account pwdStr:(NSString *)pwdStr smsCodeStr:(NSString *)smsCodeStr secreatCode:(NSString *)secreatCode resultBlock:(BKUserCompleteBlock)resultBlock;

//用户获取图片验证码
+(void)getUserImgCodeWithBlock:(BKUserCompleteBlock)resultBlock;

//用户获取图片验证码 (返回随机产生的唯一标示符)
+(NSString *)getUserImgCodeAndUniqueIdWithBlock:(BKUserCompleteBlock)resultBlock;

//根据图片验证码获取短信验证码
+(void)getMessageCodeWithDataDict:(NSDictionary *)dataDict imgCodeGenerationCode:(NSString *)gerationCodeStr block:(BKUserCompleteBlock)resultBlock;

//找回密码第一步
+(void)findPwdFirstStepWithAccount:(NSString *)accountStr imgCodeStr:(NSString *)imgCodeStr imgCodeKey:(NSString *)imgCodekey resultBlock:(BKUserCompleteBlock)resultBlock;
//找回密码 获取验证码
+(void)findPwdGetSMSCodeStrWithAccount:(NSString *)accountStr resultBlock:(BKUserCompleteBlock)resultBlock;

//找回密码 重置新的密码
+(void)findPwdAndResetNewPwdWithAccount:(NSString *)accountStr newPwd:(NSString *)pwd passDataStr:(NSString *)passData resultBlock:(BKUserCompleteBlock)resultBlock;

//修改换密码
+(void)modifyNewPwdWithDict:(NSDictionary *)dict resultBlock:(BKUserCompleteBlock)resultBlcok;


//实名认证上传图片
+(void)upLoadRealNameAuthImgData:(NSData *)imgData resultBlock:(BKUserCompleteBlock)resultBlock;

//上传认证信息
+(void)upLoadRealNameAuthPersonalInfoWithInfoDict:(NSDictionary *)infoDict resultBlock:(BKUserCompleteBlock)resultBlock;

//获取认证信息
+(void)getUserAuthRealNameDeatailWithCompleteBlock:(BKUserCompleteBlock)resultBlock;

//我的账户余额详情
+(void)getUserAccountDetailWithBlock:(BKUserCompleteBlock)resultBlock;

//获取未读信息数
+(void)getUnreadMessageNumberWithUserid:(NSString *)userId resultBlock:(BKUserCompleteBlock)resultBlock;

//三方登录
//联合登录接口，即登录页面QQ与微信中接口
+(void)checkThirdAccount:(NSDictionary *)dictionary mycallBack:(BKUserCompleteBlock)resultBlock;

//个人信息中第三方登录是否绑定
+(void)userInfoThirdAccount:(NSDictionary *)dict mycallBack:(BKUserCompleteBlock)resultBlock;

//个人信息中第三方移除绑定
+(void)userInfoRemoveThirdAccount:(NSDictionary *)dict mycallBack:(BKUserCompleteBlock)resultBlock;

//绑定登录接口即绑定登录页面中所用的接口
+(void)bindOpenAccount:(NSDictionary *)dict mycallBack:(BKUserCompleteBlock)resultBlock;
//个人信息中解绑后再绑定的接口
+(void)userInfoBindAccount:(NSDictionary *)dict mycallBack:(BKUserCompleteBlock)resultBlock;

//获得想要咨询的订单
+(void)getWantToAskOrderWithParaDict:(NSDictionary *)paraDict resultBlock:(BKUserCompleteBlock)resultBlock;

@end
